<?php
namespace Framework\Library\Utility;

/**
 * 数据打包器
 */
class DataPackage{
	
	public function object_encode( $data_object ){
		
		return base64_encode(serialize($data_object));
		
	}
	
	public function object_decode( $data_string ){
		
		return unserialize(base64_decode($data_string));
		
	}
	
}